PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-03-08 10:13:27.831825+00:00 (UTC)
In US/Central Time, this is 2024-03-08 04:13:27.831825-06:00
## Visualize Principal Component 1
pc1, loadings = pca_index.pca(dfn, module="scikitlearn")
pc1.plot();
../../_images/d4b567fc7bc0f1c4eaa91f3cbbd8bbfbde174d3e4e7834a32ed5ded667fd2abb.png
# Simple version
fig = px.line(pc1)
fig.show()
vix = df.loc[:,['VIX']]
vix.plot()
<Axes: xlabel='DATE'>
../../_images/b9e75a40684f5e902a004793abc9b4139185792c21c88762476343d816955815.png
fig = px.line(vix)
fig.show()
../../_images/4e573c223609996c0c62be30a8bd2b2b505ad59999495639de2919c7e6cc681d.png